<?php
/**
 * Created by PhpStorm.
 * User: chengchaogui
 * Date: 2017/8/27
 * Time: 22:51
 */

namespace App\Framework\Enum;


class SinglePageIdEnum
{
    //玩家守则
    const PLAYER_RULE = 1;
    //用户服务协议
    const SERVICE_AGREEMENT = 2;
    //用户信息保密条款
    const SECRECY_AGREEMENT = 3;
    //反作弊申明
    const CHEAT_AGREEMENT = 4;
    //帮助中心
    const HELP_CENTER = 5;
    //关于我们
    const ABOUT_US = 6;

    public static $dataMap = [
        self::PLAYER_RULE => '玩家守则',
        self::SERVICE_AGREEMENT => '用户服务协议',
        self::SECRECY_AGREEMENT => '用户信息保密条款',
        self::CHEAT_AGREEMENT => '反作弊申明',
        self::HELP_CENTER => '帮助中心',
        self::ABOUT_US => '关于我们'
    ];

    public static function getName($key)
    {
        if (array_key_exists($key, self::$dataMap)) {
            return self::$dataMap[$key];
        }

        return '';
    }
}